BIN=getSum.exe
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
FLAG=-c
FFLAG=-o
RM=rm -rf
GTOOL=gcc
STANDARD=-std=c99
VERSION=-g

$(BIN):$(OBJ)
	$(GTOOL) $(FFLAG) $@ $^ $(STANDARD) $(VERSION)
%.o:%.c
	$(GTOOL) $(FLAG) $< $(STANDARD) $(VERSION) 

.PHONY:clean
clean:
	$(RM) $(BIN) $(OBJ)


